//
//  BankCardTextField.h
//  CustomFramework
//
//  Created by Houge on 2021/5/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface BankCardTextField : UITextField

// 默认为4，即4个数一组 用空格分隔
@property (assign, nonatomic) NSInteger groupSize;
// 分隔符 默认为空格
@property (copy, nonatomic) NSString *separator;

@end

@interface UITextField (WYRange)

- (NSRange)selectedRange;

- (void)setSelectedRange:(NSRange)range;

- (void)bankNoshouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;

@end

NS_ASSUME_NONNULL_END
